// 可以跳转的;
// 接收path 和参数 params两个属性
import React, {Component} from 'react';
import {Link} from 'react-router-dom';
import './index.css';

class SingleAlbums extends Component {
    render() {
        const {item,path} = this.props;
        return (
            <Link to={{pathname:path,state:{id:item.id}}} className={'singleAlbum_wrapper'}>
                <div className={'imgWrapper'}><img src={item.picUrl}/></div>
                <div className={'title'}>{item.name}</div>
            </Link>
        );
    }
}

export default SingleAlbums;